Skip to content

Rewrote MrmGetFilePathFromName for clarity/robustness and expanded search to include exe path even with a baseDir #4965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2025

Conversation

Scottj1s
Copy link
Member

This work supports A/B runtime selection

…arch to include exe path even with a baseDir
break;
case SearchPass::ParentPathForFileName:
// move to parent folder of previous search
RETURN_IF_FAILED(PathCchRemoveFileSpec(searchDir, searchDirCount));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like searchDir and searchDir count will always be zero here since they are both local to the loop body scope?

@JesseCol
Copy link
Contributor

It seems important that we don't accidentally change the logic later -- is it possible to add a test case somewhere?

@Scottj1s Scottj1s merged commit 4d11c40 into main May 27, 2025
1 check passed
@Scottj1s Scottj1s deleted the user/sjones/search_exedir_and_basedir branch May 27, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants